/* 人员、角色、岗位相关api */

import { ajaxService } from '@/utils/request';

const env = import.meta.env;
// const baseURL = env.VITE_API_BASE_URL;
const baseURL = env.VITE_DEV_BASE_URL;
// const baseURL = 'http://192.168.31.129:39001';

// 获取人员列表
export function GetUserList(params: any) {
  return ajaxService({
    url: '/user/staff/search',
    method: 'get',
    params,
    baseURL
  });
}
/**
 * 获取登录人的详情
 */
export function GetUserDetail(params: { id: number }) {
  return ajaxService({
    url: '/hr/personnel_matters/roster/personnel/date',
    method: 'get',
    params,
    baseURL
  });
}
